//
//  FinancialController.m
//  Wisdom Bank
//
//  Created by rimi on 15/10/9.
//  Copyright (c) 2015年 wlc. All rights reserved.
//

#import "FinancialController.h"

@interface FinancialController ()
@property (nonatomic,strong) UIButton *myCollectBtn;
@property (nonatomic,strong) UIButton *contrastBtn;
- (void)addUI;
@end

@implementation FinancialController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self addUI];
}

- (void)addUI{
    
    [self.view addSubview:self.myCollectBtn];
    [self.view addSubview:self.contrastBtn];

}

#pragma mark - getter
- (UIButton *)myCollectBtn{

    if (!_myCollectBtn) {
        _myCollectBtn = ({
            UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
            btn.frame = CGRectMake(40, 12, 100, 40);
            [btn setImage:[UIImage imageNamed:@"我的收藏.png"] forState:UIControlStateNormal];
            btn.layer.cornerRadius = 5;
            btn;
        });
    }
    return _myCollectBtn;
}

- (UIButton *)contrastBtn{
    
    if (!_contrastBtn) {
        _contrastBtn = ({
            UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
            btn.frame = CGRectMake(180, 15, 115, 35);
            [btn setImage:[UIImage imageNamed:@"3D对比栏1.png"] forState:UIControlStateNormal];
            
            btn;
        });
    }
    return _contrastBtn;
}



- (void)dealloc{

    NSLog(@"理财被销毁了");
}

@end
